<?php


class SettingTable extends Doctrine_Table
{

    public static function getInstance()
    {
        return Doctrine_Core::getTable('Setting');
    }

    public function getLastQuery(){
		return $this->createQuery()->addOrderBy("Id")->limit(1);
    }


	public function getLast(){
		return $this->getLastQuery()->execute()->getLast();
    }



}